package com.bosicloud.cmb.ibp.account.common.model;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.NotBlank;

import javax.persistence.Table;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@Table
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class IbpUserApiKey implements Serializable {
    @NotNull
    @NotBlank(message = "awsKeyId不能为空")
    String awsKeyId;
    @NotNull
    @Min(value = 0, message = "请正确填写userID")
    Integer userId;
    @NotNull
    @NotBlank(message = "awsKey不能为空")
    String awsKey;
    @NotNull
    @NotBlank(message = "env不能为空")
    String env;
}
